
package com.middlegroup.common.wrapper;

import java.io.IOException;
import java.io.OutputStream;
import javax.servlet.ServletOutputStream;
import javax.servlet.WriteListener;

/**
 * @author pc
 */
public class ServletOutputStreamWrapper extends ServletOutputStream {
    private OutputStream cache;

    public ServletOutputStreamWrapper(OutputStream out) {
        this.cache = out;
    }

    @Override
    public void write(int b) throws IOException {
        this.cache.write(b);
    }

    @Override
    public boolean isReady() {
        return false;
    }

    @Override
    public void setWriteListener(WriteListener writeListener) {

    }
}
